#pragma once
#include "TinyTCPServer.h"
#include "TinyMsg.h"

using namespace TinyCC::TCP;
using namespace TinyCC::msg;

class CTinyTCPIF
{
public:
	CTinyTCPIF(void);
	~CTinyTCPIF(void);
	void setTCPServer(CTinyTCPServer * tcpserver){m_TCPServer = tcpserver;}
	bool sendMsg(int socketID,CTinyMsg& msg);
	//bool sendMsg(string ip,int port,CTinyMsg& msg);
private:
	CTinyTCPServer * m_TCPServer;
public:
	bool isConnected(int socketID);
};
